package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class ReadDeviceStatusVO {


    @JsonProperty("code")
    private Integer code;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("msg")
    private String msg;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("deviceId")
        private String deviceId;
        @JsonProperty("attributeListDTO")
        private List<AttributeListDTODTO> attributeListDTO;

        @NoArgsConstructor
        @Data
        public static class AttributeListDTODTO {
            @JsonProperty("key")
            private String key;
            @JsonProperty("value")
            private Integer value;
        }
    }
}
